public class Demo9 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            while (true){

            }
        });
        //在调用start之前获取状态，此时就是 NEW 状态
        System.out.println(t.getState());
    }
}
